package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_organ_joinuser"
    ,catalog="zutuan_prot"
)
public class JujuOrganJoinuser  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuOrganJoinuser";
	public static final String TABLE_NAME="juju_organ_joinuser";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_organid = "organid"; 
	public static final String P_userid = "userid"; 
	public static final String P_name = "name"; 
	public static final String P_grade = "grade"; 
	public static final String P_college = "college"; 
	public static final String P_major = "major"; 
	public static final String P_mobilephone = "mobilephone"; 
	public static final String P_weixin = "weixin"; 
	public static final String P_qq = "qq"; 
	public static final String P_mail = "mail"; 
	public static final String P_usertype = "usertype"; 
	public static final String P_applystatus = "applystatus"; 
	public static final String P_approvemark = "approvemark"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_dept = "dept"; 
	public static final String P_applyreason = "applyreason"; 

     private String id;
     private String organid;
     private String userid;
     private String name;
     private String grade;
     private String college;
     private String major;
     private String mobilephone;
     private String weixin;
     private String qq;
     private String mail;
     private Integer usertype;
     private String applystatus;
     private String approvemark;
     private Long createtime;
     private String dept;
     private String applyreason;

    public JujuOrganJoinuser() {
    }
	
    public JujuOrganJoinuser(String id) {
        this.id = id;
    }
    public JujuOrganJoinuser(String id, String organid, String userid, String name, String grade, String college, String major, String mobilephone, String weixin, String qq, String mail, Integer usertype, String applystatus, String approvemark, Long createtime, String dept, String applyreason) {
        this.id = id;
        this.organid = organid;
        this.userid = userid;
        this.name = name;
        this.grade = grade;
        this.college = college;
        this.major = major;
        this.mobilephone = mobilephone;
        this.weixin = weixin;
        this.qq = qq;
        this.mail = mail;
        this.usertype = usertype;
        this.applystatus = applystatus;
        this.approvemark = approvemark;
        this.createtime = createtime;
        this.dept = dept;
        this.applyreason = applyreason;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ORGANID", length=36)
    public String getOrganid() {
        return this.organid;
    }
    
    public void setOrganid(String organid) {
        this.organid = organid;
    }
    
    @Column(name="USERID", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }
    
    @Column(name="NAME", length=36)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="GRADE", length=36)
    public String getGrade() {
        return this.grade;
    }
    
    public void setGrade(String grade) {
        this.grade = grade;
    }
    
    @Column(name="COLLEGE", length=36)
    public String getCollege() {
        return this.college;
    }
    
    public void setCollege(String college) {
        this.college = college;
    }
    
    @Column(name="MAJOR", length=36)
    public String getMajor() {
        return this.major;
    }
    
    public void setMajor(String major) {
        this.major = major;
    }
    
    @Column(name="MOBILEPHONE", length=36)
    public String getMobilephone() {
        return this.mobilephone;
    }
    
    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }
    
    @Column(name="WEIXIN", length=36)
    public String getWeixin() {
        return this.weixin;
    }
    
    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }
    
    @Column(name="QQ", length=36)
    public String getQq() {
        return this.qq;
    }
    
    public void setQq(String qq) {
        this.qq = qq;
    }
    
    @Column(name="MAIL", length=36)
    public String getMail() {
        return this.mail;
    }
    
    public void setMail(String mail) {
        this.mail = mail;
    }
    
    @Column(name="USERTYPE")
    public Integer getUsertype() {
        return this.usertype;
    }
    
    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }
    
    @Column(name="applystatus", length=2)
    public String getApplystatus() {
        return this.applystatus;
    }
    
    public void setApplystatus(String applystatus) {
        this.applystatus = applystatus;
    }
    
    @Column(name="approvemark", length=200)
    public String getApprovemark() {
        return this.approvemark;
    }
    
    public void setApprovemark(String approvemark) {
        this.approvemark = approvemark;
    }
    
    @Column(name="createtime")
    public Long getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }
    
    @Column(name="dept", length=100)
    public String getDept() {
        return this.dept;
    }
    
    public void setDept(String dept) {
        this.dept = dept;
    }
    
    @Column(name="applyreason", length=200)
    public String getApplyreason() {
        return this.applyreason;
    }
    
    public void setApplyreason(String applyreason) {
        this.applyreason = applyreason;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


